package com.yx.frame.log;





public final class LogFactory {

  public static String SYSTEM_LOG_FILE_PATH ="./log/";

  public static int SYSTEM_LOG_level =0;

  private final static int MAX_LOG_FILE_LINE = 20000;

  private static LogWriter internalLog = null;

  
  private static LogFactory instance = null;

  
  private LogFactory() {

  }

  public void init() throws Exception {

  }

  public static LogFactory getInstance() {
    if (instance == null) {
      instance = new LogFactory();
    }
    return instance;
  }

  public LogWriter getLogWriter() {
    MessageLogClient log = new MessageLogClient();
    log.setLogLevel(SYSTEM_LOG_level);
    //log.setLogFileName(SYSTEM_LOG_FILE) ;
    return log;
  }

}
